﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using GameEngine.Clients.Silverlight.View;
using GameEngine.View.Components;
using GameEngine.Model.Data;

namespace MySettlers.Screens
{
    public partial class EditorMainMenu : UserControl, IMenuView<string>
    {
        public event OnButtonClickHandler<string> OnExternalActionButtonClick;
        public const string BACKBUTTON = "BACKBUTTON";
        public const string NEWGAMEBUTTON = "NEWGAMEBUTTON";
        public const string EDITGAMEBUTTON = "EDITGAMEBUTTON";

        public EditorMainMenu()
        {
            InitializeComponent();
            
            BackButton.Tag = BACKBUTTON;

            NewGameButton.Tag = NEWGAMEBUTTON;
            EditGameButton.Tag = EDITGAMEBUTTON;

        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Button b = (Button)sender;
            OnExternalActionButtonClick(b.Tag as string);
        }
    }
}
